package com.winning.joiner.magiccube.tool.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.winning.joiner.magiccube.common.config.AppConfig;
import com.winning.joiner.magiccube.common.controller.BaseController;

/**
 * 跳转到首页
 * 
 * @author joiner
 */
@Controller
@RequestMapping("/system")
public class MainController extends BaseController
{	
	@Autowired
	AppConfig appConfig;
    
    // 系统介绍
    @GetMapping("main")
    public String main(Model model)
    {
        model.addAttribute("version", appConfig.getVersion());
        return "main";
    }
}
